package me.boot.web.common.template.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import me.base.commom.model.dto.BaseDTO;

import java.util.List;

/**
 * @author :  sylar
 * @FileName :
 * @CreateDate :  2017/11/08
 * @Description : 通用的分页查询结构体
 * @ReviewedBy :
 * @ReviewedOn :
 * @VersionHistory :
 * @ModifiedBy :
 * @ModifiedDate :
 * @Comments :
 * @CopyRight : COPYRIGHT(c) xxx.com All Rights Reserved
 * *******************************************************************************************
 */
@Getter
@Setter
@AllArgsConstructor
@ApiModel("分页数据DTO")
public class PageData<DTO> extends BaseDTO {
    @ApiModelProperty(value = "总计数据条数")
    private int total;
    @ApiModelProperty(value = "总分页数")
    private int pages;
    @ApiModelProperty(value = "当前页号，从1开始")
    private int current;
    @ApiModelProperty(value = "每页数据条数")
    private int size;
    @ApiModelProperty(value = "响应的数据列表")
    private List<DTO> items;
}

